package com.example.wlt.personnel_manegement_system.Manager.Org;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ListView;
import android.widget.SimpleAdapter;
import android.widget.TextView;

import com.example.wlt.personnel_manegement_system.Adapter.AuditAdapter;
import com.example.wlt.personnel_manegement_system.Item.Item_audit;
import com.example.wlt.personnel_manegement_system.R;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * Created by WLT on 2016/4/21.
 */
public class Pro_audit extends Activity {
    private Button btn_back;//返回按钮
    private ListView lv_item;//审核名单
    private SimpleAdapter simp_adapter;
    private List<Map<String,Object>> datalist;//数据源
    private TextView tv_head;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.organization_project_audit);
        btn_back=(Button)findViewById(R.id.btn_org_headleft);
        lv_item=(ListView)findViewById(R.id.lv_aduit_item);
        tv_head=(TextView)findViewById(R.id.tv_top_head);
        tv_head.setText("申请审核");
        //创建数据源
        List<Item_audit> Item=new ArrayList<>();
        for(int i=0;i<20;i++){
            Item.add(new Item_audit
                    (
                            "王小"+i,
                            "运营部",
                            "同意",
                            "拒绝"
                    ));
        }
        //加载适配器
        lv_item.setAdapter(new AuditAdapter(this,this,Item));
        btn_back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

    }
}

